<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.List" %>
<%@ page import="kr.hyosang.dkbs.kiosk.server.data.News" %>
<%@ page import="kr.hyosang.dkbs.kiosk.server.data.entity.NewsEntity" %>
<%@ include file="/WEB-INF/include/props.jsp" %> 
<jsp:include page="/WEB-INF/include/top.jsp" flush="false" />
<jsp:include page="/WEB-INF/include/sidebar.jsp" flush="false" />
        
        
<%
  News news = new News();
  List<NewsEntity> list = news.getList();
%>

        <script type="text/javascript">
        function doSubmit() {
            var f = $("#regform");
            
            f.submit();
        
        }
        
        </script>

        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

          <h2 class="sub-header">News</h2>
          <form role="form" id="regform" method="post" action="/news/register" enctype="multipart/form-data">
            <div class="form-group">
              <label for="inputTitle">Title</label>
              <input type="text" class="form-control" id="inputTitle" name="inputTitle" placeholder="title..." />
            </div>
            <div class="form-group">
              <label for="inputContent">Content</label>
              <textarea class="form-control" id="inputContent" name="inputContent" rows="10" placeholder="contents.."></textarea>
            </div>
            <div class="form-group">
              <label for="inputStartDt">Start Dt</label>
              <input type="datetime" class="form-control" id="inputStartDt" name="inputStartDt" placeholder="yyyymmdd" />
              <span class="help-block">Helo...</span>
            </div>
            <div class="form-group">
              <label for="inputEndDt">End Dt</label>
              <input type="datetime" class="form-control" id="inputEndDt" name="inputEndDt" placeholder="end..." />
              <span class="help-block">Help...</span>
            </div>
          </form>
          <div>
            <div class="col-sm-6">
            </div>
            <div class="col-sm-6 text-right">
              <button class="btn btn-primary" onclick="doSubmit();">Submit</button>
            </div>
          </div>
        </div>
      </div>
    </div>

<jsp:include page="/WEB-INF/include/bottom.jsp" flush="false" />
    